package string;

import java.util.Scanner;

//键盘录入比较
public class Str2 {
    public static void main(String[] args) {
        //键盘录入字符串
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入一个字符串");
        String s1 = sc.next();
        //定义字符串
        String s2="abc";

        System.out.println(s1==s2);
    }

}
